package Util::University::University;
use Moose;
use namespace::autoclean;

has 'schema' => (
	is => 'rw',
	required => 1,
	isa => 'DBIx::Class::Schema',
);

sub get_all {
	my ($self) = @_;
	my @university = $self->schema->resultset('University')->all();
	return \@university;
}

sub find {
	my ($self, $univ_id) = @_;
	my $university = $self->schema->resultset('University')->find($univ_id);
	return $university;
}


__PACKAGE__->meta->make_immutable;

1;
